BUG: fix wrong gcc version check

probably irrelevant by now, but emits a warning during compilation.
Merge pull request #3807 from juliantaylor/gcc-check

BUG: fix wrong gcc version check