Include glib.h instead of glib/gthreads.h

Newer versions of glib do not allow us to include individual submodules of
glib anymore.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>