Fixed issues for Darwin/BSD using llvm.