build: improve to the path of gcc and c libraries.

N/A

1.define to environment value for the prefix of gcc.
2.support to multiple c libraries.

Change-Id: I19d6b45c2b293a2e78db6425097cbfdc0d8512a0
Signed-off-by: yudatun <yudatun@gmail.com>