Fix getopt inclusion bug, added inet_pton file for windows, taken and adapted from libcurl 7.36.0