move static-linked stub dlsym out of dynlink.c