Fix libpng-1.4 build