checking compiler output was a bad idea, revert to checking exit status