moved equilibration code in ECOS_solve. did not previously adhere to ANSI C