Download latest package from http://www.libpng.org/pub/png/libpng.html
Go to libpng folder and type the following command:
- ln -s 'which glibtool' ./libtool
- export MACOSX_DEPLOYMENT_TARGET=10.4
- ./configure –enable-shared && make && sudo make install