Fix some compiling bugs
.gitignore initilize for C++