#3 use update-alternatives instead of modifying CXX for gradle.