Use the correct socket related error messages on Windows