[C] Add atomic histogram.  Clean up warnings.  Materialise imports on headers.