Fix support for Python 2.5 on Windows.

With Python 2.5 setting socket timeout on Windows caused all connections to fail. On Linux Ctrl-C seems to work also without it so no need to set it at all with Python.

With Jython 2.5 setting socket timeout allows Ctrl-C to work and is thus needed regardless the OS.