fix errors and remove zlib