Small update for latest Rust version

Replaced `pub extern` with just `extern` and properly casted a type for a vector.
Merge pull request #45 from jmgrosen/latest-rust

Small update for latest Rust version