windows: fix that an immediate connect error is not seen and the socket is stuck...