TCP Keepalive for none listening connections

Added TCP keepalive for non-listening connections (e.g. IRC network). This might increase connection stability to IRC servers.