Fix BlueGene/Q build with recent CMake