wayland: fix memory leaks

There are still some leaks from wayland-cursor stuff, but there is no way to
free the memory as user of the cursor library.
wayland/shm: tone down warnings

Those warnings are printed far too often and actually aren't usefull at all.