Winrm working

Minor fixes to make library work on Windows 2008 R2 guest.