We need to link with pthread now.
Remove hand-rolled mutating range all_of.
Add an assert which should probably be a diagnostic.