Applying fixes to Https from Windows team to mono

@dafergu2