Rule of three fix (add copy assignment oprtor). Compiler warnings fixes.