fix all warnings for compilation on linux with clang++ 3.5 and c++11.