Cleanup variables.
Implement "--mode" switch to tell what we want to build.