Fixed build error with ImageMagick 6.8.9