Some c++11 related bugfixes induced by clang rigorousness