BUILD: fix building with libpng-1.6