Fixed Compile errors

c++11 introduces scoped enums, so the code didn't fail in clang