Fix devil for compilation with clang and libpng >= 1.4