FreeBSD compilation fix