Elliminating some deprecated GLib functions