fix generic osRules and patch cpp flags in the settings file for clang