Enabled gradient via MXFunction if no other available