fixed compile issue with ode static linking