Fixed compilation on Windows
Fixed compilation warnings