Fix gcc version detection

Signed-off-by: Paul Beeler <sparksco@gmail.com>