Linux compile fix for ImageMagick
also linking against MagickCore