Fix GCC detection in RBuild (first check TARGET_CC).