Fix in tests
Add DEBUG preprocessor constant in build parameter
Fix warning
Add Config script
Fix compilation errors