implemented function ptr for irc_connect to switch between ipv6, cleaned up some debug code, implemented sleep to throttle reconnects
set ENABLE_IPV6 for debug and release builds