Merge pull request #1 from kagia/rust0.11

Fixes for rust nightly
initial Cargo integration
Merge remote-tracking branch 'upstream/rust0.11' into rust0.11