wayland: Attach buffer before committing

With recent changes in attach semantics, we always need to attach before
committing. This fixes the problem with wayland gtk clients not updating
surface contents correctly since latest changes regarding attach.
wayland: Remove unused header