MinGW fixes for ip_address

This is not a part two of the patch, it is just that I forgot to submit
the changes to ip_address.c.