modify for compiling in Windows