Fix Windows portability