Support FreeBSD

Just a quick fix to make it build on FreeBSD.