Small update for latest Rust version

Replaced `pub extern` with just `extern` and properly casted a type for a vector.