Use constant for blocking errnos.
Fixed tests on Windows.
Merge pull request #1044 from schlamar/wouldblock-const

Use constant for blocking errnos.
Merge pull request #1045 from schlamar/fix-win-tests

Fixed tests on Windows.