Compilation fix for FreeBSD