Fix for DNS lookup failures in underlying XMPP libs #839