Fixed FreeBSD incompatibility