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.
Merge pull request #633 from cduclos/master

MinGW fixes for ip_address