Simplify testing for compile errors