Ignore some more files

Somehow I missed some *.o files in my last commit. Also added
*.d to the global .gitignore file.