Follow changes in rust master
build perftest as separate crate
Use extern crate time in perftest