Get the lib name for MagickCore from pkg-config.

With recent ImageMagick releases the Quantum depth is postfixed to the
lib name.