Rebuild and keep link files and scm headers