Add .gitattributes file to better deal with line endings.
Normalize line endings. Leave external libraries untouched.
Merge branch 'master' into add-gitattributes
Merge pull request #2510 from bilderbuchi/add-gitattributes

Add .gitattributes file