To keep autoconf happy.
Added libz.
Added build with static libs.