Fix for plugin support on FreeBSD.