[libpng15] Only mark text chunks as written after successfully writing them.
[libpng15] Removed "option WRITE_COMPRESSED_TEXT enables WRITE_TEXT" from

pnglibconf.dfa
[libpng15] Avoid out-of-bounds memory access in png_user_version_check().

Simplified and future-proofed png_user_version_check().