Fixing compilation warnings