Fix shared_ptr<> initialization for GCC 4.4

Inspired by commit fcff302.