Force static build. Make sure zlib is always configured.