modified the logging mechanism to use NSLogger on Mac OS X; various internal improvements in support of that change