clean up compile to allow auto recovery of common issues.