Call g_type_init during initialization for glib < 2.3.6.