Fix gcc version check

Signed-off-by: Michael Buesch <m@bues.ch>