more tweaks for emscripten