Fix FreeBSD build (thanks JR!)