Improve emscripten build