Delete compile and link flags that do not exist