build.sh: use a gcc with target triplet from PATH if CC=gcc is set
am: 0646c8d257

Change-Id: Ic01614a1e2dd336a4582adeccc6f6feed06265e8