Clean up namespaces in obj2yaml.cpp.
Remove a global 'endl' variable from the other file as well.