Take out some steps from the original compile script.