Fixing several issues in function set_os_defaults_windows that prevent working on Windows.
Fixing several issues in function set_os_defaults_windows that prevent working on Windows.

huitema/getdns,huitema/getdns,huitema/getdns,huitema/getdns