Fix modeltool build