Made modifications to compile with LLVM 3.5