Fix inconsistent use of lower-case and upper-case names for macros
Use CHECK_C_COMPILER_FLAG to determine if the compiler supports a flag

This simplifies platform/compiler dependent checks where we optionally
enable features or disable warnings.
Only disable deprecation warnings on Apple for OpenSSL
Introduce AddCFlagIfSupported CMake macro
Merge pull request #2275 from jacquesg/apple-warning

Check for compiler flag support instead of checking for a platform