Improved clarity of threaded coro code.
Removed malloc profiling (it was fragile).
Fixed a problem about static initialization ordering.