Windows native optimizer eol

Fix line ending handling so that native optimizer output on Windows contains proper \r\n file endings and not erroneously duplicated \r\r\n line endings.