Fix TCP keepalive 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.

Older OS X do not define TCP_KEEPCNT, so this patch is a no-op there.