Add DEBUG setting.
Fix bug that showed up in linux32 logs.