Fixing compiler warnings