Added gitattributes
Fixed a few MSVS compilation issues