restore hardcoded linkflag, downgrade imagemagick to q16hdri.