[libpng16] Backport recent changes from libpng-1.7.0beta30 and beta31.
17 files changed