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