fixing issues with clang and c++11