Replaced proc with getconf
Updated libpng link
Removed unneeded libs

I don’t need some of the libs from the original script in my
application.
Removed unused libs
Removed unused patches
Removed libpng