replace boost smart pointers with std ones.