Fix zlib build error on MacOSX

Thanks to AndoniZubimendi for finding the problem.

Also, changed all remaining references to "1.2.6" into "1.2.7"...