g++ problems