Convert to using the glib main loop.
In for a penny, in for a pound with glib: Convert to using GStrings
instead of firestrings.