fixed linux imagemagick and openjpeg build