glide64 changes to support emscripten