Call g_type_init() for older versions of glib.