Libpng warning: iCCP: known incorrect sRGB profile

When running imread on some images I get the warning “libpng warning: iCCP: known incorrect sRGB profile”. I use C++, is there a way to get rid of this?

see answer of Glenn Randers-Pehrson (Coauthor of PNG spec, developer/maintainer of libpng)