wayland-private: Ignore deprecations around legacy_buffer

yes, it's deprecated, that's why it's marked legacy. now shush.
wayland: Fix build when building without Wayland