Fixed build issue on windows