fix a compiling bug on Windows.