add gitignore rules
update gitignore
remove generated files
fix inline errors with gcc 4.7