Don't call g_type_init for glib versions >= 2.35
Merge pull request #1439 from jtanx/glib-version

Don't call g_type_init for glib versions >= 2.35