Fix compilation without memory manager.

configure example: ./configure --enable-manager=no
Merge pull request #406 from 4144/memmamanger

Fix compilation without memory manager.