fixed makefile to use pkg-config for imagemagick