Fix compilation errors due to enums namespacing.