cleanup some compilation warnings