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.