Fix window compile issue