fix(lib): enums are now namespaced

See rust-lang/rust#18973
Merge pull request #25 from japaric/fix

fix(lib): enums are now namespaced