Fix build for FreeBSD 10