fix imagemagick detection on UNIX
Merge pull request #113 from apoleon/debian-patches

fix imagemagick detection on Debian