This has probably introduced a few bugs, but it also fixed the long-standing "game cannot load if you save during the Thieves quest" bug!

I still haven't reimplemented an Automatizer alternative, but I'll see if I get time this weekend.
I'd appreciate it if people could try to give this a whirl. Even a compile failure is valuable information -- hopefully we'll get those fixed in due course.
LordEstraven, I've also tried to fix the min/max stuff properly, so I'd appreciate if you gave the current 'cpp-porting' a compile.