Fixed compile bug in glib.