Include only glib.h

Fixes error: #error "Only glib.h can be included directly."
with certain glib versions.