Fix to build with emscripten