fix some compilation warnings.