Fix some compilation warnings