Fixed initialization of shared_ptr from int for gcc-4.4