Link with g++ rather than gcc.
Clean up Tupfile.