Fix compilation with Emscripten.