Some gitignore changes

* Anchor full paths to the tree root
* Ignore object files (`.o` and `.so`)