Removes unused files, use cgo to compile C++ and C code