fixed checking gcc version