A lot of tidying, mostly warning removals. The threaded runtime will now build, although almost certainly not run.