added pre-build rules for include files
added cygwin support
bugfix: diag wasn't printing newlines