Update core, smart_ptr from master.