issue #2305:fix compiling error of emscripten port