Update for llvm change to avoid having global flag setting in TargetMachine.