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

See japaric/stats.rs#10
Merge pull request #21 from japaric/fix

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