add hack for building c++ with gcc 4.1.1