Fix emscripten build