Allow compilation on FreeBSD