Fix build when glib is in non-standard location (e.g. /opt).
Merge pull request #360 from mkhon/master

Fix build with non-standard glib location