build.sh: use GYP_DEFINES instead of copy common.gypi

Change-Id: If551511cf7226be17a22c69e935677ac19c319d0