allow for libpng 1.5.x