[emscripten] Fixing compilation errors.