fix compilation under FreeBSD
Merge pull request #329 from abimaelmartell/fix/freebsd-compilation

fix compilation under FreeBSD