Plugin fixes for FreeBSD.