Fix build for platforms without enumeration & port metadata support.
Ensure internal API is not accessible from outside of the library.