C Multiple Inheritance Problem