added std::unique_ptr to cpp11 build in the texture class