Make C++ happy.

C++ has a stronger type system than C and will not implicitly convert
int's to enum's.

Thus, we create valid 0 enum values for enum types where it makes sense.

Signed-off-by: Wander Lairson Costa <wander.lairson@gmail.com>