c++: add simple_* statistics libs