Use dlsym to check if libdl is needed for plugin