adjusting cmake files to support openjpeg