Fixed compatibility with Windows.