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

Refs #8408
Merge branch 'bugfix/8408_fix_msvc_linker_warnings' into develop