how about the following modifications?
Change "gstring.h":
...
struct _GString
{
  gchar *str;
  gsize len;
  gsize allocated_len;
  gsize utf8_len;
};
...
 Changing the size of a public struct is an ABI break, so this is not an option for glib-2.x.