updated the old glib stuff to the latest and everything compiles now.
new bunch of stuff that needs to be split out into separate files and updated