Merge pull request #3165 from 9rnsr/fix12010

[REG2.065a] Issue 12010 - Undefined template symbols for static library linked with debug symbols