Return 0 in all cases in do_oname.

Fixes build errors.
Gitignore generated files.
Fix warnings produced by clang.