added external cosim c++ generation and lib
Merge branch 'origin/test'