Allow for compilation on FreeBSD