Multiple critical fixes + Proxy autodetection on Windows