fixed issue where mono doesn't support DnsEndPoint in Socket.BeginConnect.
fixed issue with Mono where DnsEndPoint.Equals throw a null reference exception when comparing a different type of endpoint.