Cleanup compiler code for getting and checking compiler flags