cleanup C++ libraries build and distribution