switching to apititude instead of apt-get. checking for g++ rather than gcc