FreeBSD build patch

Fixes build under FreeBSD with clang.