[Windows] Fixed compile issues after aa248893 and  7f3d8ee7