Fix window compile error