Added GLIB to configure script + minor changes.