Fix build with rust master

- update rust crypto
- splitn argument order changed
- timer::sleep takes a std::time::duration::Duration now
- tailn is deprecated
- bsearch is deprecated