[Spec::Consumer] Fix platform class issues.