Don't link dl on FreeBSD

The dlopen/dlsym functions are built into libc on FreeBSD, so libdl doesn't exist and causes the linking to fail