Try to make zlib autoconfigured. Optimize scrits.