Fix detection of g++ for coverity