Fix wayland buffer and blitting

This PR brings some fixes for the `wl_buffer` and some blitting code.