Added a proper define for the external zlib and check for sched_getcpu().