Fix implecit declaration in zlib

Resolve compilation error for emscripten.
emcc now seems to disallow implicit declaration of standard c functions.