fix(lib): adapt to upstream changes in libstats

cc japaric/stats.rs#20