fix win_file.append by importing errno