Use the old libpng API so it will work on pre-1.6 installations.

The simplified API is so much nicer, but 1.2 is still extremely common.
Use pkg-config again, but just say -lpng if it doesn't work.
Make the default render target again be to make PNGs.