Make XComposite capture use new C++ plugin helper