uninstall imagemagick before building from source