Fixed building on FreeBSD