Fix building with inheritance disabled.: