Make it buildable on FreeBSD