Fix build on FreeBSD 10.