[image addon] Fixed compilation of Objective C code with gcc.