Compatibility workaround for gunicorn>=0.17.0

Not quite sure it doesn't break other things, but seems to work for us (gunicorn 0.17.1, gevent 0.13.8)