Fix TCP keepalives on OS X 10.9

Mac OS X 10.9 defines TCP_KEEPCNT, which triggers USE_TCP_KEEPALIVES.
However, it defines TCP_KEEPALIVE rather than TCP_KEEPIDLE.
coding style fix