Properly support multiple inheritance.