fix conditional dlopen support