Stricter checks for clang+g++.  Loosen g++ because it dies on extra semicolons.