Rex is special-casing the PROGRAMFILES(X86) variable. TCC does not generally support parentheses in variable names; that one gets special treatment. Oh, and it looks like COMMONPROGRAMFILES(X86) too.
If you really want to use parentheses in variable names, enclose the name in brackets: