Make locust compatible with Gevent 1.0 rc2. Should fix #53 and issues discussed in #49.