You have the full source code to libpng. Debug and find out how, where, and why those messages are appearing.

Regards,

Paul McKenzie