Core: Fix compile with WITH_COREDEBUG option enabled
Merge branch 'master' of github.com:TrinityCore/TrinityCore