control = new CUIIcon(tex_width, tex_height, texture, GG::GRAPHIC_FITGRAPHIC | GG::GRAPHIC_PROPSCALE);
I suspect it's a type where it s/b GUIICON rather than CUIIcon Edit: but, I don't know if CUIIcon is an actual object or not. whatever, this line is the one with build error.
2nd edit: says Unknown type name 'CUIIcon'