Fixed warnings for glib >= 2.35.1