Add some bits for building on FreeBSD