Fixed issue with custom install location

Using ImageMagick from custom install location fails, as cflags/libs seem to come from pkg-config