Fix build error on FreeBSD 10