MinGW fixes for ip_address

Instead of polluting ip_address.c with ifdef, I used the ifdef in platform.h to
make sure we include the right files.