C++ bindings: Make enums.py work with newer versions of pygccxml.