Update for latest Rust
Remove all warnings (at least on Linux)
Merge pull request #392 from Arcterus/fix-build

Update for latest Rust and remove warnings