warnings fixed for depracated g_type_init call