Address Clang integer truncation warning
Link FreeBSD binaries against pthread