autotools: add wayland shm support