c++ common lib