fix Issue 10101 - static if conditional cannot be at global scope using mixin template