fix win_file.append by importing errno
Merge pull request #10633 from goldbach/errnofix

fix win_file.append by importing errno