Debugger: Make namedemangler test run without X

Change-Id: Ia04d6b7999eaa2de6471031100fa4143549185d7
Reviewed-by: hjk <hjk121@nokiamail.com>