Fix libpng compilation when zlib is not installed system wide.
(It is not by default because that requires admin privileges.)