fix compile on windows