CMS-2994 Split up ts common compile from apps.