cmake: Add zlib dependency explicitly for when building libpng statically.