C++ common lib