Fixed compilation warnings on Windows