Fix glib build
Merge pull request #203 from ebfe/mattn-fix-build

Fix glib build