Extend doc on compilation flags, add .gitignore