wayland/shm: version detection that also works

The previous method would break on the next release. Because I am stupid.