meson: Fix compilation without GLES3

Closed Alexander Stein requested to merge tq-steina/kmscube:gles3-compilation-fix into master

Follow fixup for compiling without GLES3.

perfcntrs.c needs to be compiled conditionally as well.

Merge request reports