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.
Add remaining win32 0.40.06 symbols