core: Use TARGET_GCC_VERSION for linaro_compilerchecks

Change-Id: I0dccac3cc439b008ebe433534bf21b91ef1a9a92