Yeah, that was a weird one - I've compiled on three machines, now, and only had this on one of them (the one using the 'gold' linker, which is probably it).
It's easily fixed: in the top-level CMakeLists.txt, underneath
find_package ( Qt4 REQUIRED )
add
find_package ( ZLIB...