fix compile issue in windows