Some emscripten optimizing tweaks