added some missing checks for header files (particularly zlib.h), used autoheader to help generate config.h.in