Avoid use of boost::make_shared

This is to fix a bug in old boost versions.