Replace validate_ip_address with g_hostname_is_ip_address calls
The existing method validate_ip_address
relies on these headers:
#include <arpa/inet.h>
#include <netinet/in.h>
These headers are not available on Windows. Instead, use a similar method in Glib that already does what this function has and is portable. This allows Windows compilation.
Edited by Andre Klapper