some FreeBSD fixes (closes #8053)