Compile fixes for example compositors

Change-Id: I4399681dc91ca20a84177247379cf6eafd2b6a6e
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>