Improved gtk_init error handling

Replaced gtk_init_check with gtk_init_with_args so that we can return
the actual GTK error if it fails instead of a generic error.
Normalize line endings for tests
Change error on gtk_init to report the actual error from gtk for better debugging

Also line ending fixes for all tests and a .gitattributes file (really should have been it's own commit)