[enh] Optimize Windows build