Fix visibility of externs.
Update to rust 0.6 syntax.
Merge pull request #1 from metajack/rust-0.6-syntax

Rust 0.6 syntax