Fix compilation with < glib 2.32
Merge pull request #152 from jesperpedersen/glib230

Fix compilation with < glib 2.32