Modified smooth.c as c++ source (smooth.cpp)
Improve c++ compatibility of libconvergence.a