added a couple more missing precompiler directives, fixed self-referential #includes from being infinite loops
added header for err.h
removed a silly assert, fixed the case of the last char in a file being ';'