Fix generated NIF code for enums in messages

When enums are declared inside a message, the enumerator symbols are
prefixed with the message name and enum name (separated by
underscores) in the C++ code generated by Google's protoc.
Adapt to that.