Remove old unused files
Ensure build checks dependencies first, for a better failure message
Add common header, use 'copy files', not 'copy headers' so it works for Archive builds