FreeBSD build (must fix #2, #3 also)