Add .gitattributes.
Fix checkstyle for cygwin/Windows.