The problem here is that the expect/actual usage in a component is happening in an ancestor component, which is forcing the hand of descendant components to have KSP generate platform code. It's kind of loose though, because until a descendant has a dependency from that ancestor component that uses an expect/actual dependency, nothing is broken.
I'll try to come up with a good representative example and open an issue.