Updated license to zlib and updated build script