Fix < c++11 compatibility for mangos