Fix build with clang on FreeBSD