Fixed compiler errors from enum values when compiling with non-Microsoft compilers.