Fixed build for OSX and llvm