Fix compilation errors under GCC
Add CMakeLists.txt
Add .gitignore