Fix some compilation warnings.