This patch fixes two issues that don't play out well in
environments related to packaging.
First, help/man/GNUMakefile.am is really antiquated and
inflexible. Changed it to a simple setup using man_MANS.
Second, the test for the pngconf.h header emits an ugly
warning because zlib.h isn't included before pngconf.h
in the test file.