Fix Compilation error on FreeBSD