Add patch for cmake >= 2.8.12