chore: add .gitattributes file

Specify line endings for Windows builds.

Closes #10431
Merge remote-tracking branch 'origin/gitattributes' into gitattributes