Core/BattlePet: Bunch of nix warning and error fixes.