Fix cmd line build
Fix Makefile
Add idle detection flag to settings
Clean before building cmd line app
Idle detection is enabled by default