Fix partially the bug #4 in the Makefile

Fix the bug avoiding the compilation of out of date dependencies.
However, still necessary some code to track modifications in
header files.