Configure `glib` and `gdk-pixbuf`

Fixes https://github.com/gjtorikian/mathematical/issues/18.

/cc @bkeepers Does this branch work for you?