[CMake] Corrects boolean expression checking X11 and OpenGL presence.