Fix a bug where a failed tls_start would cause a loop. Moved static variables in schannel into the tls struct.
Fix a couple compile warnings. Extend features timeout to 5 seconds.