llvm: Improve compatibility with Mac OS X