Properly free GSL ODE resources.
Clean up lima.c and add option to specify number of threads