Fixing (read: kludging) the issue where terra.exe would not re-link when terra.lib changed.
Also re-arranged the custom build scripts for LuaJIT a little so it's possible to drop in replacement files.