Enable Wayland and Mir in configure/cmake scripts, now that 2.0.2 has shipped.
Patched to compile on C89 compilers.