emscripten support in swigmain