fixed gcc version check for max reduction