[REG2.063a] Issue 10101 - static if conditional cannot be at global scope using mixin template

http://d.puremagic.com/issues/show_bug.cgi?id=10101

This regression is caused by merging ##1227.