SSL support: use SNI only if supported by IO::Socket::SSL

SSL support: use SNI only if supported by IO::Socket::SSL (i.e. openssl version>=1)