Fix build without GBM

Merged Olivier Fourdan requested to merge ofourdan/xserver:fix-build-without-gbm into master

If GBM is not available (or too old), the build would fail in various places.

This is to fix that.

Merge request reports