Use `extern crate` instead of `extern mod`
Use RawPtr methods

Update for mozilla/rust@60bc76f - remove duplicate function from std::ptr (is_null, is_not_null, offset, mut_offset)
Use `extern crate`
Fix a "closure requires unique access" compilation error