apply line ending fix only on Windows
fix for #4785