Fix build for platforms without enumeration & port metadata support.