remove files which no need to git and fix some compile errors