Split ensure_bootstrap into two phases including a phase checking the
compiler, and a phase checking for target libraries.