Win32 compilation fixes.
Patch 1 from Valcav Michalek: DNS flush during first usage
Patch 2 from Vaclav Michalek: netsh.exe is not reentrant
Patch 3 from Valclav Michalek: client crash for expired + confirm