Updated against last M.Graesslin review. Sorry, couldn't find a way to get rid of GbmBuffer struct (removed some redundant fields though).
Re-checked with latest KWin and KRfb.