[c2778] Fix Compile. Requires C-Mangos [12419]

Also tune a few GetData functions

(based on commit da98ca9)