update CASADITools.h to support the latest version of casadi, compilation passed.