llvm build fixes for C++11