[xbuild] implemet ItemDefinitionGroup using original Haakon Sporsheim patch