Fix devil for compilation with clang and libpng >= 1.4

Can you please submit this patch to the upstream developers of this project and add a link to the upstream patch submission in a comment in the formula file. Thanks!