fix(lib): adapt to upstream changes

See:
japaric/simplot.rs#11
japaric/stats.rs#23
rust-lang/rust#18973