fix emscripten build