use pthread on cygwin.
Merge branch 'master' of github.com:akr/socket-test