doc/paper.tex: corrections to section "Adapting C++ code"