Adds git hash to compiler's version switch. Refs #1119.