Fixed segfaults when destroying ODE world.