Fix compile for mingw on Fedora 17.

I am quite suspicious of the io_ip_socket changes, but likely
that code never worked right for Windows anyway, so hopefully
this won't cause any worse regression.

Signed-off-by: Ben Greear <greearb@candelatech.com>