FreeBSD doesn't have a libdl, so don't error out or use it if we're on FreeBSD.