add back support for applying local patches
patch CMake to make the non-Cern branch happy with clang

  by bstegmaier75,
  from: https://github.com/mangelajo/KicadOSXBuilder/issues/14#issuecomment-29023516