Modify and cleanup compiler flags