Use <dlfcn.h> not only on BSD