Fix Makefile for the compilation of the examples with multiple source files
Change the name of an old source file to remove a conflict with a convenient Makefile target
Improve the Makefiles to generate MCAPI version for the examples

This introduces a strange regression on the link of C++ examples.