cmGlobalGenerator: Take Build output argument by reference

No call sites pass NULL to the output argument, so take it by
reference to avoid the if(output) conditions.  Propagate the
change through the TryCompile APIs that call it.
Merge topic 'cmGlobalGenerator-Build-output-ref' into next

30983ebe cmGlobalGenerator: Take Build output argument by reference