fixed build with emscripten