Revert "mesa: Don't depend on Wayland"

This reverts commit 7ff232e9584b6bd78a38b0d6b85dd2c6e0ebce4e.
See discussion at the original commit.

CC: #4999, #5001, #5061, #5071.