Added zlib and pthreads explicitly to cmake