remove c++ lib dependency