added some tricks to compile glib