Make copy ctor and assignment operator private (#3225)