[2887] Fix compile and linking. Requires CMaNGOS [12471]

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>