Changes needed for compilation on mac qith llvm.