В CentOS
root ~/mozjpeg # yum search png | grep dev allegro-loadpng-devel.x86_64 : Development files for loadpng libpng-devel.i686 : Development tools for programs to manipulate PNG image libpng-devel.x86_64 : Development tools for programs to manipulate PNG image libpng12-devel.i686 : Development files for libpng 1.2 libpng12-devel.x86_64 : Development files for libpng 1.2 pnglite-devel.x86_64 : Files needed to build and link programs with pnglite
Нам нужен dev-вариант libpng версии от 1.6 . Из этого нам подходит libpng-devel.x86_64 . Его и устанавливаем.
root ~/mozjpeg # yum install libpng-devel.x86_64