Only build examples if the necessary platform component is build.