don't do bad things in destructors (caused runtime errors on exit), update for 2.066, works well in 2.065, works without -inline in 2.066