Fix Emscripten build