Upgrade to current Rust

- libc is now outside std.
- global attributes changed to new syntax.
- `nolink` attributes are no longer valid.

For `nolink`, see https://github.com/mozilla/rust/issues/7960