configure: Properly set zlib dependencies for all components