add an ugly redundant compatibility hack to support gunicorn < 0.17.0