Support <dlfcn.h> in Darwin10, FreeBSD7 and Linux