and the appropriate hit points, feats, skill ranks, and special abilities for a creature of that level or HD
I think that says it all. half the HD, which works fine for the dragon.
For a rakshasa, cast as a level 3 Sorc instead of 7 (3 HD instead of 7 HD). Change the DR to 10/good OR piercing...