tests: fix build when --enable-tests-gles is not enabled