Map WSA error codes to standard error codes.