Make sure that GNU-like compiler warning flags are only added on GNU-style compilers