Allow overriding __eq__.
Export __cmp__ method.