I have placed libpng12.so.* and png.h in the proper places. If I bypass error this by forcing one of the flags, I get a run time error
Failed loading libpng.so.3 Creating a symbolic link to libpng12.so.* also is not helping. I can't figure out where to get png3 package.