Fix build on FreeBSD.