Fixed some compilation warnings