Small tweak for older versions of libpng.