compiles with LLVM with C++11 support
fixed a few warnings