Move compiler flag checks to CheckForGoogleMockCompilerFlags.cmake