remove redundant dependency
do CPPFLAG setting for all object files
Bugfix: do not link run_@CLASSNAME@.o and scan_@CLASSNAME@.o to the lib

Linking run_@CLASSNAME@.o and scan_@CLASSNAME@.o to the model library
gives a linking error in case we use dynamic libraries.
introduce variable for the object files of the executables