#61 added original script from Ivan Junier
#61 problems with joint compilation of c and c++; need to add .o as lib