Fixed compilation in Windows