For mingw target, if a symbol is not marked DSO local, a .refptr is
generated for it. This makes CFG check calls use an extra pointer
dereference, which adds extra overhead compared to the MSVC version,
so mark the CFG guard check funciton pointer DSO local to stop it.
This should have no effect on MSVC target.
Also adapt the existing cfguard tests to run for mingw targets, so that
this change is checked.
This generates an implicit conversion of string-literal to bool. Alternatively you can do assert(false && "Invalid CFGuard mechanism");