add deps build scripts
rename more files for packaging
replace all usage of cindex -> CIndex