fix g_type_init version guard