Fix build failure under FreeBSD 9.3