Merge pull request #8 from rleigh-codelibre/clang-fixes

Fixes for LLVM on MacOS and FreeBSD