Modifications for FreeBSD

Changed "epoll" to just "poll" so that it can work on FreeBSD.  Also required some slight modification to the wait the poll() function gets called.

Changed from using IPV6 to IPV4

These changes allowed my to run it on FreeBSD 9.x with Python 3.3.