[CMake] Improve handling of experimental grid extension flag.

The HAVE_ ... variable is now set to 1 instead of TRUE.