Eliminate some GLib dependencies.