mk: use $CC to detect toolchain version