fix(lib): adapt to upstream changes in stats.rs

See japaric/stats.rs#11
Merge pull request #22 from japaric/fix

fix(lib): adapt to upstream changes in stats.rs