Improve compiler checking [skip ci]