Avoiding subtle bugs in CMakeLists.txt with respect to checking if code segments compile/link, and adding GNU compiler toolchain for Stampede.