Fix compliation error, update CMakeLists.txt, add some scripts to help the building process