Add stats.h.
Add test case.
Do not link with libpthread.
Add RPM spec.
Within each thread order stats alphabetically.