Fix cairo compilation with libpng 1.6