Merge pull request #2661 from WalterBright/fix11239

fix Issue 11239 - [REG2.064beta] ctRegex causes link errors with -debug since Pull2550