Refactor|libcommon: Switched more libcommon source files to C++