Use more features from zlib plus some bug fixes

DEFLATE can now use GZ and raw zlib format, plus strategies
Avoid buffer overflow when packed tile is bigger than raw