Lib/IRC: Use gai to setup the socket and thus support IPV6