Adapt memory analyzer library to both version of EG library