Build errors with C++ interop enabled

Possibly related: [🍒][cxx-interop] Correctly import fields with type `NS_OPTIONS`. by zoecarver · Pull Request #66563 · apple/swift · GitHub

Found via "Expected a type" error on Appkit NSEvent.ModifierFlags enum