Patch to make SSL work with gevent