Reduce warnings on Linux; fix namespaces in test suite.