Made makefile support debug as a choice
Merge branch 'cout-to-debug' into multiple-threads