set SO_KEEPALIVE on all connections

The MySQL client libraries do this automatically, so it makes sense to
do so here, as well.
use SOL_SOCKET instead of IPPROTO_TCP, for Windows compatibility
Merge remote-tracking branch 'origin/pr/140'

Conflicts:
	pymysql/connections.py