Use wrappers for accessing socket errors. Cygwin does not have some errors in errno...