fix some compilation warnings