switch zlib to miniz, update documentation, update build system