build a newer version of graphicsmagick with --enable-shared to work with pgmagick