Revert "Add ability to build loadpng as DLL."

This reverts commit fed67f58ff1a0e744ae725000ba0da82426e6ab3.
Revert "Add ability to build jpgalleg as DLL."

This reverts commit 5505b44cefdb4f0c4ed54580220befff7cb49d1e.