binding: leverage the `GraphicsMagick-config` program during build

Makes build work as expected on OS X.