Fix Compilation issue under FreeBSD