cleanup some invalid flags that were being passed to the llvm build. part of #5268