Solve some compilation warnings.