Use inet_ntop/inet_pton from twisted.python.compat instead of the socket

Apparently, these routines are missing on Windows.