fix compilationproblems when cross-compiling
remove c++11-specifics