Prepare ImageMagick differently in different OSes