removing unnecessary parts of zlib
used REPLACE instead of REGEX REPLACE for string operations in cmake