Fix build support for Windows.