Fix and complete compile process.