Rust upgrade: fix static and cfg
Merge pull request #49 from mbrubeck/rustup-fix

Rust upgrade: fix static and cfg