anv: move common wsi code to x11/wayland common files.