replace boost::shared_ptr with std::shared_ptr; improve Rect

Signed-off-by: anti-freak <antifreak2011@gmail.com>