Fix variable shadowing in windows C code