p2-c++: more c++ fixes in readline and testsuite. tests are failing