Also add some patches to remove use of deprecated symbols and fix other problems when looking for or compiling against libpng-1.4.x.