added compiler version and option checking to cmake