--- base/CMakeLists.txt.orig	2015-08-03 10:14:33 UTC
+++ base/CMakeLists.txt
@@ -30,7 +30,8 @@ if (NOT MINGW)
   # because they change the API (e.g. _FILE_OFFSET_BITS).
   set (CMAKE_C_FLAGS              "${CMAKE_C_FLAGS} ${HARDENING_FLAGS} -D_FILE_OFFSET_BITS=64 -Wall -fPIC")
 
-  pkg_check_modules (ZLIB REQUIRED zlib)
+  set (ZLIB_INCLUDE_DIRS "")
+  set (ZLIB_LDFLAGS "-lz")
 
   pkg_check_modules (GIO REQUIRED gio-2.0)
 endif (NOT MINGW)
