Fix to compile with latest emscripten version