[libpng17] Port recent changes from libpng-1.6.2.
8 files changed