Move MemoryLogger into anonymous namespace
Fix unity build: exclude Dialog.cpp from tools

The dialog implementation may require libSDL which is only liked into
the main arx executable.