thread_test/main.cxx: Make SlowObject reference counted. Join threads.
appender_test/main.cxx: Work around non-determinism in output.
Remove using namespace.