build g++ and libstd++-v3