libpng: Fix build and split patch from source

Now uses download_and_extract and apply_patch instead of psp-ports's
pre-patched sources which are hard to maintain.