Fix warnings for bare struct references in glib/.