Fix compiler inheritance check