fix glib related warnings.'