fix #10521 - missing namespaced functions
fix win_file.append by importing errno
Merge pull request #10631 from goldbach/issue10521

fix #10521 - missing namespaced functions