maybe you could be more specific. What exactly are you trying to build from source?
maybe it has been linked to the bad libraries. Try checking on the projects documentation something about your problem. I don't know exactly, but look at the configure script( or your console output) if it requires a special filename vor the libraries of that version. try with:
ln -s glib.your.version glib.required.version
this in the folder where the script will look (probably /usr/lib or /usr/local/lib , not much Ubuntu experience here, sorry) but you can find out easily with a "whereis glib" command.
well Worst Case, you can download the older version of glib here
and compile them yourself (but I guess you have to restart in single user mode for compiling, try with the "safe mode" boot. because these libraries are used by gnome if I am not mistaken). unfortunately there appears to be no 2.0 version listed in their servers...
you will have to hack the source code and link to the apropiate header files!