Fixes the build

When memory does not contain smart pointers when --std=c++11 is not added to the command line.