Adapt to imagemagick 7
Updated patch to fix another typo
compile failures with newer g++
Handle active low signal names