Fix NET_IPSocket and NET_IP6Socket return type

It was causing a warning on Windows x64.