lib&cli: use g_object_new instead of g_object_newv