Fix build issue on windows