Fix build with png-1.6.
Sort.