more reworking of emscripten stuff
[skip ci]