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