fix suport for libpng 1.6
Include zlib.h for compression constants
Add simple CMakeLists.txt