Fixed interface equality check for pointers to structures.