Make the imagemagick.m4 a bit less dependent on Imagick