add CMakeLists.txt
fix bugs temporarily
Merge remote-tracking branch 'soga/master'

Conflicts:
	src/libapngasm.h