Lowered Glib requirements, added missing function. Now it compiles on older Centos.