generalize allhdr target to allsrc target
Bugfix: need to check for algorithms before use_algorithm() is called
Fill ALLSRC variable in the makefile modules for each model.
Bugfix: link libpthread even if only two-scale method chosen

Since the two-scale method uses threads as well, we have to link
against libpthread in any case.
print value of ENABLE_COMPILE
do not check for compilers and libs if enable_compile is no
catch std::exception as well

A std::exception is thrown for example if libpthread is not linked.