move static-linked stub dlopen out of dynlink.c