Rename to suffix h++/c++. Make debug a no-op macro in release, and
thread-safe debug output in debug builds using a variadic template and
comma operator tricks. Clean up comments.