Cherry pick from https://github.com/ElunaLuaEngine/Eluna/pull/405 Co-authored by https://github.com/Rochet2
Refer to 6194ddb43c for new C++11 required changes for mangos based cores
6194ddb43c