[cmake] fixes alugrid + test builds
replace more enums with ints
[cmake] remove another autofools remnant
NEVER test for (variable == truth_value)