Added conditional win32 platform flag to allow for compilation on Windows Systems

Added a Windows conditional flag to the connectToTLS method. Now compiles on Windows 7.