Fixed camera initialization crash in my machine by changed CameraModelFactory to return a std::shared_ptr. Other minor modifications