fix compile issue on windows platform