allow to build on FreeBSD