Add TCP keepalive support.