The -Wformat-security option is dependent on -Wformat on GCC and will
throw a warning when cmake check for the flag alone. Using a flag group
fixes the issue.
Note that -Wformat ends up added twice, since it can be used alone if
supported. CMake will deduplicate the flags for us.
Depends on D6310.