[3001] Fix build for CMaNGOS 12661