Fixed compilation under clang/emscripten