make typedefs compatible with freeimage