Fixed compilation warnings.