Add __has_feature(capabilities) support.
Fix #pragma opaque to support calls to public functions from within
the same module.