Installation of libpng
Install libpng by running the following commands:
patch -Np1 -i libpng-1.2.5-link-to-proper-libs.patch &&
make prefix=/usr \
ZLIBINC=/usr/include ZLIBLIB=/usr/lib -f scripts/makefile.linux &&
make prefix=/usr install -f scripts/makefile.linux