Emscripten fixes, Mac num processes fix