build and pass tests on freebsd