Fix UB on GuiInfoBox-derived objects destruction and improve clang support