Fix crash on declared but not defined function. Add -02 for

performance. Add -i for include dir support. Add -s and -l for constant
symbol counting. Add -r to allow minimal report of progress even when
"quiet".  Allow for NWNDIR to be specified as an environment variable.

Trying again. This is more work that it should be :)