fix up emscripten build