[EMSCRIPTEN] less workarounds due to fixes in emscripten, enable more optimizations