Refactor|libcommon: Switched m_ctrl.c to C++
libcommon: Cleanup