Use namespaced enum variants.

As per this pull request https://github.com/rust-lang/rust/pull/18973,
enum variants require fully qualified path to access them.
This commit introduces boring changes to make nix-rust compiles againts
new rust.