Cleanup before build.