[gobject] Fix a few warnings

Part of https://github.com/behdad/harfbuzz/issues/277
4 files changed