update enums to build against latest rust.
Merge pull request #7 from caryhaynie/latest_rust_fixes

update enums to build against latest rust.