search dlopen in either libc or libdl

This is for BSD-variant dlopen