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.