Implement clean and compile.