Bug fix for makefile.
Further (and final, hopefully) update to the build system. Plus some
more refactoring of the proof node code.