Fixed compilation on Windows