Include string.h.

Fixes implicit declaration warnings.
Include zlib.h for ZLIB_VERSION.

Fixes undefined reference errors.
Ignore generated files.