imagemagick: build source with keg-only libtool.

References #14609.
Closes #18746.