fix(lib): adapt to upstream changes in libstats

cc japaric/stats.rs#20
Merge pull request #33 from japaric/fix

fix(lib): adapt to upstream changes in libstats