Fixup ansi win api and fs