Build fixes. Fix crashes on exit.
It can find which variables are wrong now! Next step is to figure out how to get from pointer to variable name.