FreeBSD compile errors