more FreeBSD fixes