NetSSL_Win: various bugfixes and improvements