Make sure gtest doesn't overwrite flags that are already set.

Refs #8408