Apply compiler flags only once