Improve compiler checks