Fixed broken compilation on FreeBSD