Fixed all glib deprecated warnings.