let glib optional

let glib optional, so we can compile it under windows