[libpng15] Fixes for multiple calls to png_read_update_info.

These fixes attend to most of the errors revealed in pngvalid, however doing
the gamma work twice results in inaccuracies that can't be easily fixed.
There is now a warning in the code if this is going to happen.
10 files changed