fix to last rust

- extern crate ...
- ptr::to_unsafe_ptr removed