Fixed cmake code related to boost patch for apple clang