Cmake works , some failure fixed in Exception and File