core/buildsystem: check the actual compiler being version