package imagemagick: fix runtime errors due to threading bugs

Runtime tests have revealed that libMagick++ crashes in pthread-related code.
Therefore, this patch disables threading in the package. Unfortunately the
configure switch is not enough; the resulting config header needs to be tweaked.