Merge pull request #2275 from jacquesg/apple-warning Check for compiler flag support instead of checking for a platform