Added check for g++.