Fix gcc detection