Fix "assignment operator could not be generated" warnings