master, chunkserver: Fix the compression of charts

Due to a bug in the build system, presence of the Zlib library wasn't
properly handled and compression of charts was disabled. This commit
fixes the build system to properly handle both absence and presence of
this library.

Change-Id: Ibefd0d4841c808cb86af245847d817dbe4bf8806