Fixes the build

When memory does not contain smart pointers when --std=c++11 is not added to the command line.
Merge pull request #1 from Roflincopter/master

Fixes the build