fix up emscripten dependency management and enlarge memory