Fixed contact-reduce build when IPOPT not present