Added #if defined(_win32) satements