fix Linux version of ConstraintDemo