Find glibconfig.h cmake should use pkgconfig information instead of a hard coded path to /usr/lib.

the OnOpen callback should be called when set to avoid a segfault.
Merge pull request #1931 from bjcollins/master

Fix glib cmake script and only call OnOpen callback if set