Include only glib.h

Fixes error: #error "Only glib.h can be included directly."
with certain glib versions.

I can't reproduce this on my system (glib 2.38.1), but a user reported it happens with a very recent glib. It's the correct way to use glib anyway.