Fixed NullSecMgr on Linux, and some Linux warnings as well.