Fixing build with newer ImageMagick version.