Fix compilation errors due to enums namespacing.

Mio didn't compile on last Rust.