Small FreeBSD fixes