Also move deprecated TargetPlatform there. This allows to get rid of the dependency cli.common -> frontend, and even on frontend.common.
This allows to get rid of dependency cli.common -> frontend.java.