Emscripten build fix