Fixed compilation warnings and ius errors