fix custom require (with dlopen(RTLD_GLOBAL))