Added support for -1 incdir, -p to indicate NWNDIR is provided on command line, NWNDIR as environment variable,
-r to print basic message even when -q is specified,  -s and -l to support tracking number of global symbols to ensure
code can build with stock toolset compiler. Fixed compiler crash when function is declared but not defined.
Added -O2 to cmake flags since it's about 4x speedup in build time for me.