Cleanup object files and add a .gitignore rule to exclude them.