fix for new autotools and libpng 1.4