cmake: add missing dependency for zlib and pthread