[CI] Add an option to select the compiler to build_cmake.sh
Summary:
This reduces the amount of duplicated flags.
There is no change in behavior.
Test Plan: Run the changed CI builds.
Reviewers: #bitcoin_abc, deadalnix
Reviewed By: #bitcoin_abc, deadalnix
Differential Revision: https://reviews.bitcoinabc.org/D6677