Fixing some compilation warnings.