apply patch for compatibility with glib >= 2.42
Merge pull request #2 from fuesika/bugfix/glib2.42

apply patch for compatibility with glib >= 2.42