don't write project files with native line endings on windows
(fixes #6407, fixes #7735, fixes #8267)