The last patch looks worrying in terms of forward-compatibility. Looking at your wayland branch, you use a few unstable files. What happens if/when they get promoted to stable? Will those files be moved in wayland-protocols causing your branch to fail to build?
Also, it would be better to have commit adding build system support for protocol files together with at least a simple use of it in the same MR.