Cleaned up warnings.
Turns out that we can't use a const version of logCategories because parseArgs() updates it.  Also fixed platform dependency issue concerning shared library extension.