fixed some compilation warnings.