fix compile error under windows