return 1 in case the g++ version test program could not be compiled
eliminate the _error variable
directly check for exit code in if statement
make more variable local