Fix pngcodec compliance with libpng (it compiles against new libpngs now)

The info_ptr structure should not be used, this has been in the png
documentation since at least July 2000.

Hopefully this mantains the same functionality, but in a way that will
compile with the newest versions of libpng.