Note that one needs at least version 3.14 of freeimage.