fix wdb on gevent/eventlet on PY2
Merge remote-tracking branch 'r3m0t/gevent'
Move socket logic in compat to keep python implementation for python 3. References #30