Compatibility fixes with latest Clang/LLVM compiler and C++11