enum namespacing fixes throughout the crate

fix build of rust-sdl2 with current rustc nightly.