Compiling on AIX 5.3

I'm trying to compile matplotlib under AIX 5.3 (I've installed
ActivePython), here is what I get:

/usr/local/python2.5/config/ld_so_aix cc_r
-bI:/usr/local/python2.5/config/python.exp
build/temp.aix-5.3-2.5/src/agg.o
build/temp.aix-5.3-2.5/agg23/src/agg_trans_affine.o
build/temp.aix-5.3-2.5/agg23/src/agg_path_storage.o
build/temp.aix-5.3-2.5/agg23/src/agg_bezier_arc.o
build/temp.aix-5.3-2.5/agg23/src/agg_vcgen_dash.o
build/temp.aix-5.3-2.5/agg23/src/agg_vcgen_stroke.o
build/temp.aix-5.3-2.5/agg23/src/agg_rasterizer_scanline_aa.o
build/temp.aix-5.3-2.5/agg23/src/agg_curves.o -lstdc++ -lm -o
build/lib.aix-5.3-2.5/matplotlib/_agg.so
ld: 0706-006 Cannot find or open library file: -l stdc++
        ld:open(): No such file or directory
building 'matplotlib._na_transforms' extension
creating build/temp.aix-5.3-2.5/CXX
cc_r -DNDEBUG -O -Isrc -I. -I/opt/freeware/include
-I/Produits/publics/powerpc.AIX.5.3/include
-I/Produits/publics/powerpc.AIX.5.3/gcc/3.1/include -I.
-I/usr/local/include/python2.5 -c src/_na_transforms.cpp -o
build/temp.aix-5.3-2.5/src/_na_transforms.o -DNUMARRAY=1
"./CXX/Objects.hxx", line 1436.100: 1540-0140 (S) The text "&" is
unexpected. "SeqBase<T>::iterator" may be undeclared, ambiguous, or may
require "typename" qualification.

I've got libstd++.a and libstdc++.la in
/Produits/publics/powerpc.AIX.5.3/gcc/3.1/include

Setting CXX to g++ doesn't help :
g++ cc_r -bI:/usr/local/lib/python2.5/config/python.exp
build/temp.aix-5.3-2.5/src/agg.o
build/temp.aix-5.3-2.5/agg23/src/agg_trans_affine.o
build/temp.aix-5.3-2.5/agg23/src/agg_path_storage.o
build/temp.aix-5.3-2.5/agg23/src/agg_bezier_arc.o
build/temp.aix-5.3-2.5/agg23/src/agg_vcgen_dash.o
build/temp.aix-5.3-2.5/agg23/src/agg_vcgen_stroke.o
build/temp.aix-5.3-2.5/agg23/src/agg_rasterizer_scanline_aa.o
build/temp.aix-5.3-2.5/agg23/src/agg_curves.o -lstdc++ -lm -o
build/lib.aix-5.3-2.5/matplotlib/_agg.so
g++: cc_r: No such file or directory
error: command 'g++' failed with exit status 1

Is there any other way to select the c++ compiler? Because setting the
CXX variable doesn't seem to work.