Fix build failure on FreeBSD 8.x.