Move "using namespace ..." after all includes
Putting "using namespace ..." before the includes can shadow missing
namespace prefixes in the included headers. In one case the statement
was even superfluous because there's already an equivalent "using
namespace ..." after the includes.