fix build with libpng16