Rework buffer management according to recent changes in libwebos-gui

Signed-off-by: Simon Busch <morphis@gravedo.de>