fix compile error for Windows.