fix to work with latest HEAD of Rust. an initial attempt at making friction work