fixed compile errors, silenced warnings on equals() methods.