Remove unused defines
Activate debug mode by config