Use TARGET_GCC_VERSION for toolchain

Change-Id: I850cca40d4cfb9627d44cc9bd4144a8619d35aab