DevIL is for now not compatibel with newer libpng versions.
png1.4 renamed png_set_gray_1_2_4_to_8 fn to png_set_expand_gray_1_2_4_to_8
I fixed this by passing CFLAGS to configure:
There are other ways to fix this, of course.
I haven't tried loading/saving .png's yet, so no idea if there are other problems with libpng1.4.