Fix all constraint warnings and errors.