Adapt XCompositeBuffer to qtwaylandscanner

Change-Id: I108e6a2a01c9ae972e9a7f47f5b289132d862f69
Reviewed-by: Andy Nichols <andy.nichols@digia.com>