Updated CMake script to use zlib, jpeg, png or tiff lib system