build: Set -Wformat when testing for -Wformat-security
gcc errors out if you use -Wformat-security on its own without -Wformat, rendering the test for whether -Wformat-security is supported useless.
Signed-off-by: Philip Withnall withnall@endlessm.com
Closes #656 (closed)