chore: add .gitattributes file

Specify line endings for Windows builds.

Closes #10431