fixing some compilation warnings