Few FreeBSD compile fix.