canon: call g_type_init if compile with 2.3