Support for deflate compression in zip writer.

Also enabled unit test function for temporary debugging.