Switch version to v0.40.06
Add main windows and linux globals and run the automatic scan.

The wound part structure has a new field, and wound_curse_info
had one in the wrong location as it turns out.