Only call g_type_init() when GIO dependency is enabled.  Closes: #461.