Fixing compile warnings