Fixed FreeBSD build