Fix the build with gcc 3.8.1

The declaration as enum and the redeclaration as
unsigned conflicts and cause a compiler error. Use
unnamed enums instead, we are not using the type
for variable declarations anyway.
Merge pull request #81 from dnarvaez/enums3

Fix the build with gcc 3.8.1