Fix fogbuilder build on FreeBSD