integrating shared_ptr and building with gcc 2.7.2