dynlib: optionally pass RTLD_GLOBAL to dlopen