[php] Compile Graphics Magick with --enable-shared flag